﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Journal : Contenu
    {
        private string _nomJournal;
        private string _date;

        public Journal() : base()
        {
            _champs = new List<string>();
            this.setDefaultChamps();
        }

        public string NomJournal
        {
            get { return _nomJournal; }
            set { _nomJournal = value; }
        }

       public string Date
        {
            get { return _date; }
            set { _date = value; }
        }

       private new void setDefaultChamps()
       {
           base._champs.Add("reference");
           base._champs.Add("nom_journal");
           base._champs.Add("date");
       }

        public new string toString()
        {
            return base.toString() + "\n" + NomJournal + "\n" + Date;
        }
    }
}
